VERSION 5.00
Begin VB.Form frmClave 
   BackColor       =   &H00FFFFFF&
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "Ingrese clave "
   ClientHeight    =   1410
   ClientLeft      =   45
   ClientTop       =   390
   ClientWidth     =   8415
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1410
   ScaleWidth      =   8415
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton Command1 
      Caption         =   "Cancelar"
      Height          =   375
      Left            =   6360
      TabIndex        =   2
      Top             =   360
      Width           =   975
   End
   Begin VB.CommandButton btnLogin 
      Caption         =   "Aceptar"
      Default         =   -1  'True
      Height          =   375
      Left            =   5100
      TabIndex        =   1
      Top             =   360
      Width           =   975
   End
   Begin VB.TextBox txtPassword 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   1140
      PasswordChar    =   " "
      TabIndex        =   0
      Top             =   420
      Width           =   3735
   End
   Begin VB.Image Logo 
      Height          =   960
      Left            =   60
      Picture         =   "frmClave.frx":0000
      Top             =   120
      Width           =   960
   End
End
Attribute VB_Name = "frmClave"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public login As Boolean
Public Usuario As String
Private Sub btnLogin_Click()
    Dim tCajero As DAO.Recordset
    login = False
    Set tCajero = Base.OpenRecordset("SELECT * FROM cajero WHERE Seguridad='" & txtPassword.Text & "'")
    If Not tCajero.EOF Then
        If (Seguridad.puedeRecargar(tCajero("identifica"))) Then
            FrmPedido.txtProcDesc.Locked = False
            FrmPedido.txtRecargo.Locked = False
            login = True
            Me.Usuario = tCajero("identifica")
            Unload Me
            Exit Sub
        End If
    End If
    Unload Me
End Sub

Private Sub Command1_Click()
    Unload Me
End Sub

Private Sub Form_Load()
    login = False
End Sub
